package com.agp.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
@Data
@ApiModel("古树查询")
public class TreeQueryDTO {


    /**
     * 古树信息查询条件 DTO
     */

    @NotNull(message = "古树中文名不能为空")
    @ApiModelProperty(value = "古树中文名", example = "黄帝手植柏",position = 2)
    private String chineseName;
    @NotNull(message = "古树科名不能为空")
    @ApiModelProperty(value = "科名", example = " 柏科Cupressaceae）",position = 4)
    private String familyName;
    @NotNull(message = "古树属名不能为空")
    @ApiModelProperty(value = "属名", example = "侧柏属Platycladus",position = 4)
    private String genusName;
    @Range(min = 0, message = "树龄必须大于0")
    @ApiModelProperty(value = "树龄", example = "100",position = 5)
    private Integer estimatedAge;
    @NotNull(message = "详细地址不能为空")
    @ApiModelProperty(value = "详细地址", example = "云南省昆明市昆明理工大学计算机重点实验室旁",position = 9)
    private String locationAddress;
    @ApiModelProperty(value = "创建时间范围", example = "2025-05-07",position = 10)
    private String[] dateRange;//2025-05-07

    private Integer page;
    private Integer pageSize;

    }


